Hi all, |
Re: type date in DXL
You convert to integer and then subtract a number of seconds, then convert back to date. Example: Date dNow = today() // go back 7 days = 60*60*24*7 seconds Date dOneWeekBefore = dateOf ( (intOf dNow) - 60*60*24*7 ) print "One week before it was: " stringOf (dOneWeekBefore, "ddd, dd.MM.yyyy")
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|